import { lazy } from "react";
import {createBrowserRouter} from "react-router-dom"

const Home=lazy(()=> import("../views/home/Index"));
const Order=lazy(()=> import("../views/order/Index"));

const routes=createBrowserRouter([
    {
        path:"/",
        element:<Home></Home>
    },
    {
        path:"/order",
        element:<Order></Order>
    },
])
export default routes